package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type Decimal_deviceRouter struct{}

func (s *Decimal_deviceRouter) InitDecimal_deviceRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	decimal_deviceRouter := Router.Group("decimal_device").Use(middleware.OperationRecord())
	decimal_deviceRouterWithoutRecord := Router.Group("decimal_device")
	decimal_deviceRouterWithoutAuth := PublicRouter.Group("decimal_device")
	{
		decimal_deviceRouter.POST("createDecimal_device", decimal_deviceApi.CreateDecimal_device)
		decimal_deviceRouter.DELETE("deleteDecimal_device", decimal_deviceApi.DeleteDecimal_device)
		decimal_deviceRouter.DELETE("deleteDecimal_deviceByIds", decimal_deviceApi.DeleteDecimal_deviceByIds)
		decimal_deviceRouter.PUT("updateDecimal_device", decimal_deviceApi.UpdateDecimal_device)
	}
	{
		decimal_deviceRouterWithoutRecord.GET("findDecimal_device", decimal_deviceApi.FindDecimal_device)
		decimal_deviceRouterWithoutRecord.GET("getDecimal_deviceList", decimal_deviceApi.GetDecimal_deviceList)
	}
	{
		decimal_deviceRouterWithoutAuth.GET("getDecimal_devicePublic", decimal_deviceApi.GetDecimal_devicePublic)
		decimal_deviceRouterWithoutAuth.POST("uploadImage", decimal_deviceApi.UploadImage)
	}
}
